package com.da.javatest.niuke.baodian;

/**
 * @author chenlida
 * @date 2020/10/11 22:59
 * @description
 */
public class C54Finder {
    public int findElement(int[] A, int n, int x) {
        for (int i = 0; i < A.length; i++) {
            if (A[i] == x) {
                return i;
            }
        }
        return n;
    }
}
